<tal:block xmlns:tal="http" xmlns:metal="http" >
<select onchange="window.location='/setTheme/'+this.value;" metal:define-macro="themeSelector">
	<tal:block tal:repeat="theme themes" >
		<option tal:content="theme/name" tal:attributes="selected theme/active" />
	</tal:block>
</select>

<tal:block metal:define-macro="footerLinks">
	<a href="index.html">Home</a> |
	<a href="index.html">Sitemap</a> |
	<a href="index.html">RSS Feed</a> |
	<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> |
	<a href="http://validator.w3.org/check/referer">XHTML</a>
</tal:block>

<tal:block metal:define-macro="copyrightNote">
	&nbsp; &copy;2008 All your copyright info here &nbsp; &nbsp;
		Design by : <a href="http://www.styleshout.com/">styleshout</a>
</tal:block>

<form  action="http://www.google.com/cse" metal:define-macro="searchBox">
	<p>
		<label for="qsearch">Search:</label>
		<input class="tbox" type="text" onfocus="" name="q" value="" title="Start typing and hit ENTER" id="qsearch"/>
		<input class="btn" alt="Search" type="image" name="sa" title="Search" src="images/search.gif" />
		<input type="hidden" name="cx" value="016606199282345765707:0wfbtmwhwvu" />
		<input type="hidden" name="ie" value="UTF-8" />
	</p>
</form>

<div metal:define-macro="pageItems" tal:repeat="item items">
	<h3 tal:attributes="id item/id">${item/title}</h3>
	<pre tal:content="item/syntax" />
	<p tal:content="item/body" />
	<h4>Support</h4>
	<p tal:content="item/support" />
	<tal:block tal:condition="php:count(${item/urls}) > 0">
		<h4>See also</h4>
		<ul tal:repeat="url item/urls">
			<li><a tal:attributes="href url">${url}</a></li>
		</ul>
	</tal:block>
	<tal:block tal:condition="php:count(${item/examples}) > 0">
		<h4>Examples</h4>
		<ul>
			<li tal:repeat="example item/examples">
				<h5>Template:</h5>
				<div tal:content="structure example/template" />
				<h5>Result:</h5>
				<div tal:content="structure example/result" />
			</li>
		</ul>
	</tal:block>
</div>


<div metal:define-macro="pageIndex">
	<ul>
		<li tal:repeat="item items">
			<a tal:attributes="href string:/tal#${item/id}">${item/title}</a>
		</li>
	</ul>
</div>
</tal:block>
